package models

import (
	"time"
)

const TBNAccount = "account"

type TblAccount struct {
	Id       int64      `orm:"" json:"id" form:"id"`
	CreateAt *time.Time `orm:"" json:"createAt" form:"createAt"`
	Name     string     `orm:"varchar(30)" json:"name" form:"name"`
	Account  string     `orm:"varchar(30)" json:"account" form:"account"`
	Password string     `orm:"varchar(32)" json:"password,omitempty" form:"password"`
	Status   int        `orm:"tinyint;comment:0-禁用 2-可用" json:"status" form:"status"`
}

func (m *TblAccount) TableName() string {
	return TBNAccount
}
